﻿using AutoMapper;
using RBAC_Uthorization.Domain.Entity;
using RBAC_Uthorization.Read.API.DTO.Response;
using RBAC_Uthorization.Read.API.DTO.Response.Fun;
using RBAC_Uthorization.Read.API.DTO.Response.Menu;
using RBAC_Uthorization.Read.API.DTO.Response.offlc;
using RBAC_Uthorization.Read.API.DTO.Response.Role;
using RBAC_Uthorization.Read.API.DTO.Response.User;

namespace RBAC_Uthorization.Read.API.DTO
{
    public class AreaProFile:Profile
    {
        public AreaProFile()
        {
            //公司
            CreateMap<offlcSelectShowDto, sys_offic>().ReverseMap();

            //用户
            CreateMap<UserFindIdDto, sys_user>().ReverseMap();

            //角色
            CreateMap<RoleFindDto, sys_role>().ReverseMap();
            //功能
            CreateMap<FunFindDto, sys_function>().ReverseMap();
            //菜单
            CreateMap<MenuFindDto, sys_menu>().ReverseMap();









        }
    }
}
